package com.gem.service;

import com.gem.domain.Company;
import com.gem.domain.CompanyContact;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: 玲
 * @Description:
 * @create 2019-10-24 14:21
 * @Modified By:
 */
public interface CompanyService {

    /**查询所有企业信息*/
    PageInfo<Company> findAll(int currentPage, int pageSize);

    List<Company> findAllCompany();

    /**根据id查询企业信息*/
    Company findById(Integer coId);

    /**搜索企业信息*/
    PageInfo<Company> search(Company company, int currentPage, int pageSize);

    /**添加企业信息*/
    Integer save(Company company, CompanyContact companyContact);

    /**更新企业信息*/
    Integer update(Company company);

    /**删除企业信息*/
    Integer deleteById(Integer coId);

    /**删除所选企业信息*/
    Integer deleteAll(int [] doIds);

    //根据企业名称查id(excel)
    Company findByName(String stringCellValue);

    Integer saveExcel(Company company);

    /**就业详情带companyName-->查公司*/
    PageInfo<Company> findBycoName(int currentPage, int pageSize,String coName);
}
